﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

public partial class ProductDetail3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //int ma = int.Parse(Request.QueryString["masp"]);
        if (!IsPostBack)
        {
            this.getma(1);
        }

    }
    public void getma(int masp)
    {
        rptHinhLon.DataSource = HinhAnhBLL.loadhinh(masp);
        rptHinhLon.DataBind();
        rptHinhNho.DataSource = HinhAnhBLL.loadhinh(masp);
        rptHinhNho.DataBind();

        Dtl_motaSp.DataSource = SanPhamBLL.laythongtinSP(masp);
        Dtl_motaSp.DataBind();
    }
}